<template>
  <el-col :span="span" :xs="24">
    <el-card class="el_card" shadow="hover">
      <template #header>
        <div class="card-header">
          <span>{{ title }}</span>
        </div>
      </template>
      <slot/>
    </el-card>
  </el-col>
</template>
<script lang="ts">
import { defineComponent, PropType } from 'vue'
export default defineComponent({
  name: 'CodePre',
  props: {
    span: {
      type: Number as PropType<number>,
      default: 24
    },
    title: {
      type: String as PropType<string>,
      default: '说明'
    }
  },
  setup() {
    //
  }
})
</script>
<style lang="less" scoped>
.card-header {
  text-align: left;
}
.el_card :deep(.el-card__header) {
    padding: 8px 14px;
  }
.el_card :deep(.el-card__body) {
  padding: 10px 16px;
}
</style>
